<?php 
	$row_index = 0;
	echo '<div class="table-list">';
	//table head - general information
	$html = '';
	$html .= '<div class="table-head">';
	$html .= '<span class="left count-row"></span>';		
	$html .= '<span class="left">Dominator</span>';
	$html .= '<span class="left">Race</span>';
	$html .= '<span class="left">Hero Level</span>';
	$html .= '<span class="left">Power</span>';
	$html .= '<span class="nob">Coins</span>';	
	$html .= '</div>';
	echo $html;
	//end table head
foreach ($this->paginator as $attackPage) {
	$row_index++;
	// create row for every player
	$html = '';
	$urlArray = array('controller' =>'attack', 'action'=>'player');
	$html .= '<a href="'.$this->url($urlArray, null, true).'?p='.$attackPage['user_fk'].'" class="">';
	$html .= '<div class="'. ( ($row_index % 2) ? 'odd' : 'even' ) .'">';
	$html .= '<span class="left count-row"> <img src="/images/attack.png" height="21px" width="21px"></img></span>';		
	$html .= '<span class="left">'. $attackPage['alias'] .'</span>';
	$html .= '<span class="left">'. $attackPage['race_name'] .'</span>';
	$html .= '<span class="left">'. $attackPage['hero_level'] .'</span>';
	$html .= '<span class="left">'. round($attackPage['power']) .'</span>';
	$html .= '<span class="nob">'. $attackPage['wealth'] .'</span>';	
	$html .= '</div>';
	$html .= '</a>';
	echo $html;
 }
  	echo '</div>';
  	echo '<div class="pagination">';
  	echo $this->gotoPage;
  	echo $this->paginationControl($this->paginator,'sliding', 'pagination.phtml');  	
    echo '</div>';
?>
